package com_djm_2025_05_26.OOP;

public class Computer {

    private String cpu;

    private String memory;

     String screen;

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public String getScreen() {
        return screen;
    }

    public void setScreen(String screen) {
        this.screen = screen;
    }

    public Computer(String cpu, String memory, String screen) {
        this.cpu = cpu;
        this.memory = memory;
        this.screen = screen;
    }

    public void boot() {
        System.out.println("开机");
    }

    public void powerOff() {
        System.out.println("关机");
    }

    public void surfInternet() {
        System.out.println("上网冲浪");
    }

    @Override
    public String toString() {
        return "Computer{" +
                "cpu='" + cpu + '\'' +
                ", memory='" + memory + '\'' +
                ", screen='" + screen + '\'' +
                '}';
    }
}
